package com.piece.mall.service;

import com.piece.core.jpa.repository.BaseService;
import com.piece.mall.model.OmsPaymentInfo;
import com.piece.mall.repository.OmsPaymentInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;

@Service
@Transactional
public class OmsPaymentInfoService extends BaseService<OmsPaymentInfo, String> {

    @Autowired
    private OmsPaymentInfoRepository omsPaymentInfoRepository;

    @PostConstruct
    public void initRepository() {
        setRepository(omsPaymentInfoRepository);
    }

}
